package com.neudu.yyzx_service.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.neudu.yyzx_service.mapper.BedDetailsMapper;
import com.neudu.yyzx_service.pojo.BedDetails;
import com.neudu.yyzx_service.service.BedDetailsService;
import org.springframework.stereotype.Service;

@Service
public class BedDetailsServiceImpl extends ServiceImpl<BedDetailsMapper, BedDetails> implements BedDetailsService {
    @Override
    public void removeByBedId(Long bedId) {
        // 使用 LambdaQueryWrapper 构造删除条件，根据 bedId 进行删除
        baseMapper.delete(new LambdaQueryWrapper<BedDetails>().eq(BedDetails::getBedId, bedId));
    }
}